<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>&nbsp;boxphp后台管理系统</title>
<include file="Public/header" />
<script type="text/javascript">
$(function(){
     $('#check').click(function(){
        var inputs = $(this).parents('.list_vmall_man').find('input');
        $(this).attr('checked') ? inputs.attr('checked','checked'):
           inputs.removeAttr('checked');
     });
    $(".allCommand").click(function(){
        var checkedNum = $("input[name='store_id[]']:checked").length;
        if(checkedNum == 0) {
            alert("请选店铺！");
            return false;
        }
		var url =$(this).attr('url');
        var checkedList = new Array();
        $("input[name='store_id[]']:checked").each(function() {
            checkedList.push($(this).val());
        });
	   var ids=$("#ids").val();	
       url = url+'?store_id='+checkedList+"&ids="+ids;
	    window.location.href =url;
    });
})
</script>
</head>
<body>
 
    
   
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
            	
               <include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
               
            </div>
            <div class="list_vmall_rig">
            	<div class="list_vmall_bort">
                	<table width="100%" border="1" cellspacing="1" cellpadding="1">
                      <tr>
                       <form action="<{:U('index')}>" method="get">
                        <td height="46"><input type="text" name="kw" style="margin-left:5px;" value="<{$_REQUEST['kw']}>" /><input type="submit" value="搜索" style="margin-left:4px; height:26px; color:#333" class="btn" /></td>
                        <input type="hidden" id="ids" name="ids" value="<{$ids}>" />
						</form>
                      	 
                      </tr>
                    </table>
				          	<table width="100%" class="v_am_bor_t v_am_td" border="1" cellspacing="1" cellpadding="1">
                      <tr class="v_am_bg_top" height="30">
					   <td height="34" align="center" valign="middle" class="v_am_font"></td>
                        <td height="34" align="center" valign="middle" class="v_am_font">ID</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">商店名</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">电话</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">商店域名</td>
						<td height="34" align="center" valign="middle" class="v_am_font">地址</td>
                       
                      </tr>
                      <volist name="list" id="vo">
                      <tr> 
					  <td width="50" align="center"><input type="radio" id="check" name="store_id[]" value="<{$vo.store_id}>" /></td>
                        <td height="36" align="center" valign="middle"><{$vo.store_id}></td>
                        <td height="36" align="center" valign="middle"><{$vo.store_name}></td>
                        <td height="36" align="center" valign="middle"><{$vo.photo}></td>
                        <td height="36" align="center" valign="middle"><{$vo.domain}></td>
						 <td height="36" align="center" valign="middle"><{$vo.address}></td>
                       
                        
                      </tr>
                     </volist>
                    </table>

					 <div style="padding:10px; "><a class="btn allCommand" style="padding:2px 10px;" url="<{:U('Category/index')}>">选好店铺了，下一步</a></div>
					       <include file='Public/pager' />
                </div>
				
            </div>
        </div>
        
  
 
</body>
</html>
